<ion-view view-title="订单详情" class="buyerpayment">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>

	<ion-content class="bg">
		<div class="buyerpaymentHeaderBar">
			{{order.status}}
		</div>

		<div class="list">
			<li class="item item-borderless item-text-wrap padding-0">
				<div class="row item-input padding-0">
					<div class="imgCol">
						<img src="./img/guilin/other/icon_address@3x.png" class="locationImg" />
					</div>
					<div class="col textCol">
						<p>收货人：{{order.consignee.name}}</p>
						<p>收货地址：{{order.consignee.addr}}</p>
					</div>
				</div>
			</li>
			<!--物流信息-->
			<li class="item item-text-wrap item-borderless padding-0" ng-if="order.ship_status==1">
				<div class="row item-input padding-0">
					<div class="imgCol">
						<img src="./img/guilin/other/icon_car@2x.png" class="locationImg" />
					</div>
					<div class="col textCol border">
						<p>物流公司：{{order.shipping.logi_name}}</p>
						<p>运单编号：{{order.shipping.logi_no}}</p>
					</div>
				</div>
			</li>
			<li class="item item-text-wrap item-borderless padding-0" ng-if="order.memo">
				<div class="row item-input padding-0">
					<div class="imgCol">
						<img src="./img/guilin/other/icon_msg@3x.png" class="locationImg" />
					</div>
					<div class="col textCol border">
						<p>买家留言</p>
						<p>{{order.memo}}</p>
					</div>
				</div>
			</li>

			<li class="invoice dellidot" ng-if="order.is_tax">
				<p class="info">发票信息</p>
				<p class="name">名称：{{order.tax_company}}</p>
				<img class="imgxia" src="./img/guilin/other/icon_xia@3x.png" on-tap="showInvoiceInfo()" ng-if="!invoiceflag&&showinvoicexia" />
				<img class="imgshang" src="./img/guilin/other/icon_xia@3x.png" on-tap="showInvoiceInfo()" ng-if="invoiceflag" />
				<p class="infotxt" ng-if="showinvoicexia">税号：{{order.memberVatInfo.tax_no}}</p>
				<div ng-if="invoiceflag">
					<p class="infotxt ellipsis">注册地址：{{order.memberVatInfo.registered_address}}</p>
					<p class="infotxt">注册电话：{{order.memberVatInfo.registered_phone}}</p>
					<p class="infotxt">开户银行：{{order.memberVatInfo.bank_name}}</p>
					<p class="infotxt">银行账号：{{order.memberVatInfo.bank_account}}</p>
					<div class="clearfix"></div>
				</div>
			</li>

			<!--<div class="row padding-5">
				<button class="button button-small" ng-class="{'button-assertive':is_order}" on-tap="show_order_log()">
			 		订单追踪
			 	</button>
				<button class="button button-small margin-left-10-my" ng-class="{'button-assertive':is_pay}" on-tap="show_pay_info()" ng-show="order.paymentlists.length>0">
		 		        付款信息
		 		</button>
			</div>
			-->
			<div class="clearfix"></div>
			<li class="dellidot tetle">
				<img class="imgshop" src="./img/guilin/other/shop_icon.png" />
				<span class="txt" on-tap="onshow_first(order.store_id,order.order_type_id)">{{order.store_name}} <i class="icon ion-ios-arrow-right margin-left-10-my" ng-show="order.order_type_id!='gift'"></i></span>
			</li>
			<div ng-repeat="order_items in order.order_items">
				<!--商品-->
				<div class="item shopframe" on-tap="onshow_productdetail(order_items.products[0].goods_id,order_items.products[0].product_id,order.order_type_id,order.act_id)">
					<img class="shopimg" src="{{order_items.products[0].thumbnail_pic}}" ng-if="order_items.products[0].thumbnail_pic" />
					<img class="shopimg" src="{{noImg}}" ng-if="order_objects.order_itmes.products.thumbnail_pic==''||order_items.products[0].thumbnail_pic==null" />
					<div class="shoptextframe">
						<span class="fonttext1 line2">{{order_items.products[0].name}}</span>
						<p class="fonttext2 margin-top-5 line2">{{order_items.products[0].spec_info}}</p>
					</div>
					<div class="moenyframe">
						<span ng-show="order.order_type_id!='gift'" class="fonttext1">{{order_items.products[0].price|currency:'￥'}}</span>
						<span ng-show="order.order_type_id=='gift'" class="fonttext1">{{gift_score}}点</span>
						<span class="fonttext2 margin-top-5">x{{order_items.products[0].quantity}}</span>
						<span class="fonttext2">{{order_items.products[0].invoice_name}}</span>
					</div>
				</div>
				<!--配件-->
				<div class="item shopframe" ng-repeat="adjunct in order_items.products[0].adjunct" on-tap="onshow_productdetail(adjunct.goods_id,adjunct.product_id,order.order_type_id,order.act_id)">
					<div class="partsframe">
						<img class="" src="{{adjunct.thumbnail_pic}}" ng-if="adjunct.thumbnail_pic" />
						<img class="" src="{{noImg}}" ng-if="adjunct.thumbnail_pic==''||adjunct.thumbnail_pic==null" />
					</div>
					<div class="shoptextframe">
						<p class="fonttext1 line1"><span class="partstext">[配件]</span> {{adjunct.name}}</p>
						<p class="fonttext2 margin-top-5 line2">{{adjunct.spec_info}}</p>
					</div>
					<div class="moenyframe">
						<span class="fonttext1">{{adjunct.price|currency:'￥'}}</span>
						<span class="fonttext2 margin-top-5">x{{adjunct.quantity}}</span>						
					</div>
				</div>
				<div ng-if="$index!=order.order_items.length-1" class="white"></div>
			</div>			
			<div class="clearfix"></div>
			<li class="dellidot priceinfo">
				<p class="priceinfotxt">商品总价<span class="priceinfosum">{{order.cost_item|currency:'￥'}}</span></p>
				<p class="priceinfotxt">运费<span class="priceinfosum">{{order.shipping.cost_shipping}}</span></p>
				<p class="priceinfotxt" ng-repeat="pmt in order.order_pmt">{{pmt.pmt_memo}}<span class="priceinfosum">-{{pmt.pmt_amount|currency:'￥'}}</span></p>
				<p><span class="paymenttext">实付款<span class="paymenttext1">(含运费)</span></span>
					<span ng-show="order.order_type_id!='gift'" class="paymentzong">{{order.total_amount|currency:'￥'}}</span>
					<span ng-show="order.order_type_id=='gift'" class="paymentzong">{{gift_score}}点</span>
				</p>
				<p>
					<span class="kind" ng-if="order&&order.order_type!='普通'">{{order.order_type}}</span>
					<span class="integraltext">可获积分<span class="integral">{{order.score_g}}</span>点</span>
				</p>
				<div class="clearfix"></div>
			</li>

			<li class="dellidot seller" on-tap="showCustomList(order.store_id)">
				<img src="./img/guilin/other/icon-chat.png" class="sellerimg" /><span class="sellertxt">联系卖家</span>
			</li>
			<li class="dellidot distribution">
				配送方式：<span>{{order.shipping.shipping_name}}</span>
			</li>
			<li class="dellidot mode" ng-if="order.pay_status==1||(order.pay_status==0 && order.payed_confirm !='none')">
				支付方式：{{order.payinfo.pay_app}}
			</li>
			<li class="dellidot orderh">
				<p>订单编号：{{order.order_id}}</p>
				<p ng-repeat="log in order.orderlogs.data">{{log.behavior_str}}</p>
			</li>
		</div>
		<div style="height: 44px;"></div>
	</ion-content>

	<div class="bar bar-footer">
		<div class="btn" style="border-color:{{buttons.color}};color:{{buttons.color}};right: {{76*$index+10}}px;" ng-repeat="buttons in order.buttons" on-tap="switchEvent(buttons.id,buttons.error,buttons.confirm)">{{buttons.name}}</div>
	</div>
</ion-view>